﻿using dz.u9.jky.schema.ARBill;
using dz.u9.jky.schema.Common;
using dz.util.core;
using Microsoft.AspNetCore.Mvc;

namespace dz.u9.webapi.Controllers
{
    /// <summary>
    /// 应收单接口
    /// </summary>
    [ApiController]
    [Route("api/[controller]/[action]")]
    public class ARBillController : U9BaseController
    {
        /// <summary>
        /// 新增应收单
        /// </summary>
        /// <param name="arBill"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task<U9CResult> Add(DzARBillHeadDTO arBill)
        {
            return await U9Invoke(JsonUtil.Serialize(arBill), new ApiParm() { Url = "DzARBill/Add",Desc= "应收单新增" });
        }
    }
}